﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers {
    import net.wooga.pets.events.*;
    import net.wooga.pets.models.*;
    import net.wooga.pets.models.windows.builders.vo.*;
    import net.wooga.pets.events.windows.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.utils.*;

    public class ShowWindowCommand extends Command {

        public var event:InfoEvent;
        public var ticker:TickModel;

        override public function execute():void{
            var _local1:WindowOptions = new WindowOptions(this.event.id);
            _local1.disableStage = true;
            Objects.merge(this.event.info, _local1.dataHash.storage);
            var _local2:WindowCommandTriggerEvent = new WindowCommandTriggerEvent(WindowCommandTriggerEvent.BUILD_AS_STANDARD_WINDOW);
            _local2.options = _local1;
            dispatch(_local2);
            this.ticker.pause = true;
        }

    }
}//package net.wooga.pets.controllers 
